//------------------------------------------------------------------------------
//  loader/characterprofile.cc
//  (C) 2007 Radon Labs GmbH
//------------------------------------------------------------------------------
#include "stdneb.h"
#include "loader/characterprofile.h"
#include "loader/loaderserver.h"

namespace BaseGameFeature
{
ImplementClass(CharacterProfile, 'LOCP', BaseGameFeature::UserProfile);

//------------------------------------------------------------------------------
/**
*/
CharacterProfile::CharacterProfile() 
{
    // empty
}

//------------------------------------------------------------------------------
/**
*/
CharacterProfile::~CharacterProfile()
{
    // empty
}

//------------------------------------------------------------------------------
/**
    Open the profile for reading and writing. This will open the embedded
    stream object.
*/
bool
CharacterProfile::Load(const Util::String& path)
{
    // build filename of character profile file
    Util::String filename;   
    filename.Format("%s/character/", BaseGameFeature::LoaderServer::Instance()->GetUserProfile()->GetProfileDirectory().AsCharPtr());   
    filename += path;
    filename += ".xml";

    return UserProfile::Load(filename);    
}

}; // namespace BaseGameFeature



